package bFirma;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class AgendaCRUD {
	
	//public class FichaFuncionarioCRUD {
	//(agendaSeq.nextval,'Ricardo Borges', 88951925);	
		
		public void criar(Connection con,Agenda agenda) throws SQLException{
			String sql ="insert into agenda values (?,?,?)";
			try (PreparedStatement stm = con.prepareStatement(sql);){
			stm.setInt(1, agenda.getId());
			stm.setString(2,agenda.getNomeContato());
			stm.setInt(3,agenda.getTelContato());
						
			}
			
			
		}

}
